window.onload=function(){
    var xhr=new XMLHttpRequest()
    xhr.open('get','/studio/album/bind.json'+location.search)//这里要携带aid，所以html有啥就得携带啥，加上location.search
    xhr.onload=function(){
        var data=JSON.parse(xhr.responseText)
        document.querySelector('.add').href+=location.search//加location.search这样就把？aid自动带在后面了
        document.querySelector('.title').textContent=data.title
        var oContainer=document.querySelector('.trackList')
        var list=data.trackList
        for(var i in list ){
            var t=list[i]
            var html=`<div>${t.title}</div>`
            oContainer.innerHTML+=html
        }
    }
    xhr.send()
}